// 数组去重

const arr = [1, 2, 3, 4, 5, 6, 7, 8, {}, {}, true, null, "null", undefined, undefined, 9, 10, [2, 3], [5, 6, [7]]];

console.log(Array.from(new Set(arr.flat(Infinity))));
